﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="GroupList.aspx.cs" Inherits="HTTT.admin.adgroup.GroupList" %>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <title>Danh sách Group</title>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <div id="toolbar-box">
        <div class="m">
            <div id="toolbar" class="toolbar-list">
                <ul>
                    <li id="toolbar-member" class="button">
                        <asp:LinkButton ID="btnModifyMember" runat="server" OnClick="btnModifyMember_Click">
                    <span class="icon-32-user-group"></span>Sửa thành viên</asp:LinkButton></li>
                    <li class="divider"></li>
                    <li id="toolbar-new" class="button">
                        <asp:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click">
                        <span class="icon-32-new"></span>Thêm </asp:LinkButton></li>
                    <li id="toolbar-edit" class="button">
                        <asp:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click">
                       <span class="icon-32-edit"></span>Sửa </asp:LinkButton></li>
                    <li class="divider"></li>
                    <li id="toolbar-delete" class="button">
                        <asp:LinkButton ID="btnDelete" runat="server" OnClick="btnDelete_Click">
                       <span class="icon-32-delete"></span>Delete </asp:LinkButton></li>
                    <li class="divider"></li>
                </ul>
                <div class="clr">
                </div>
            </div>
            <div class="pagetitle icon-48-menumgr">
                <h2>
                    Quản lý Group: Danh sách Group</h2>
            </div>
        </div>
    </div>
    <div id="element-box">
        <div class="m">
            <fieldset id="filter-bar">
                <div class="filter-search fltlft">
                    <label for="filter_search" class="filter-search-lbl">
                        Chọn:</label>
                    <asp:DropDownList ID="ddlOU" runat="server">
                    </asp:DropDownList>
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="Lọc" OnClick="btnSearch_Click" />
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Text=""></asp:Label>
                </div>
                <div class="filter-select fltrt">
                </div>
            </fieldset>
            <div class="clr">
            </div>
            <table class="adminlist">
                <thead>
                    <tr>
                        <th width="1%">
                            <input type="checkbox" onclick="Joomla.checkAll(this)" title="Check All" value=""
                                name="checkall-toggle" />
                        </th>
                        <th width="10%">
                            <a title="Click to sort by this column" onclick="" href="#">Tên Group</a>
                        </th>
                        
                        <th>
                            <a title="Click to sort by this column" onclick="" href="#">Mô tả</a>
                        </th>
                        <th>
                            <a title="Click to sort by this column" onclick="" href="#">Thành viên</a>
                        </th>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <td colspan="5">
                            <div class="container">
                                <div class="pagination">
                                    <div class="limit">
                                        Display #<select onchange="Joomla.submitform();" size="1" class="inputbox" name="limit"
                                            id="limit">
                                            <option value="5">5</option>
                                            <option value="10">10</option>
                                            <option value="15">15</option>
                                            <option selected="selected" value="20">20</option>
                                            <option value="25">25</option>
                                            <option value="30">30</option>
                                            <option value="50">50</option>
                                            <option value="100">100</option>
                                            <option value="0">All</option>
                                        </select>
                                    </div>
                                    <div class="limit">
                                    </div>
                                    <input type="hidden" value="0" name="limitstart" />
                                </div>
                            </div>
                        </td>
                    </tr>
                </tfoot>
                <tbody>
                    <asp:Repeater ID="rptData" runat="server">
                        <ItemTemplate>
                            <tr class="row<%# Container.ItemIndex%2 %>">
                                <td class="center">
                                    <asp:CheckBox runat="server" ID="chkItem" value='<%#Eval("ID") %>' />
                                </td>
                                <td>
                                    <a href='EditGroup.aspx?ID=<%#Eval("ID") %>'>
                                        <%#Eval("name") %></a>
                                </td>
                                <td>
                                    <a href='EditGroup.aspx?ID=<%#Eval("ID") %>'>
                                        <%#Eval("description")%>
                                    </a>
                                </td>
                                
                                <td class="center">
                                    <%#Eval("members").ToString().Replace(HTTT.Utilities.Constants.DATA_CUT.ToString(), ";  ") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div class="clr">
            </div>
        </div>
    </div>
</asp:Content>
